package org.ahuanlien.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class BillRecord {

    private Long id;
    private String sn;//单号
    private Client holder;//客户
    private Car car;//车辆信息
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="gmt+8")
    private Date aDate;//申请时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="gmt+8")
    private Date pDate;//核保时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="gmt+8")
    private Date beginDate;//起保时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="gmt+8")
    private Date dDate;//止保时间

    private Integer year;//保险年限
    private Employee opUser;//录入人
    private Employee auditor;//审核人
    private BigDecimal totalAmount;//总金额
    private String state;//状态
    private String item;//保险信息
    private String payWay;//付费方式

    private Employee inputUser;//录入人

    private Company company;//保险公司
}